
// =================== StudentViewRepository.java ===================
package com.example.demo.repository;

import com.example.demo.entity.StudentView;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentViewRepository extends JpaRepository<StudentView, Long> {
    List<StudentView> findByClassId(Long classId);
    List<StudentView> findByMajorId(Long majorId);
    List<StudentView> findByCollegeId(Long collegeId);
}